declare @name varchar(max)

declare crTables cursor
for
select name 
from sys.tables
where type_desc='USER_TABLE'

open crTables

FETCH NEXT FROM crTables
into @name

while @@FETCH_STATUS = 0
begin
	--exec Sys_AddColumns @T=@name
	exec Sys_CreateProc @T=@name, @keys='(sql)'
	--exec Sys_CreateProc @T=@name, @keys='(aspx)'
	FETCH NEXT FROM crTables
	into @name
end

close crTables
deallocate crTables